﻿/**
 * 
 * @file PropertyCustomTableWidget.h
 * @brief 数据表格类
 * @author BaGuijun (baguijun@163.com)
 * @date 2024-06-12
 * 
 */
#ifndef PropertyCustomTableWidget_H
#define PropertyCustomTableWidget_H

#include <QModelIndex>
#include "FITK_Component/FITKWidget/FITKTableWidget.h"

namespace GUI
{
    /**
     * @brief 数据表格类
     * @author BaGuijun (baguijun@163.com)
     * @date 2024-06-12
     */
    class PropertyCustomTableWidget : public Comp::FITKTableWidget
    {
        Q_OBJECT;
    public:
        /**
         * @brief Construct a new Custom Table Widget object
         * @param[i]  parent         My Param doc
         * @author BaGuijun (baguijun@163.com)
         * @date 2024-04-07
         */
        explicit PropertyCustomTableWidget(QWidget* parent = nullptr);
        /**
         * @brief Destroy the Custom Table Widget object
         * @author BaGuijun (baguijun@163.com)
         * @date 2024-04-07
         */
        ~PropertyCustomTableWidget();
    protected:
        /**
         * @brief 换行按下事件重写
         * @param[i]  event          事件对象
         * @author BaGuijun (baguijun@163.com)
         * @date 2024-04-22
         */
        virtual void keyPressEvent(QKeyEvent* event) override;
        /**
         * @brief 换行抬起事件重写
         * @param[i]  event          My Param doc
         * @author BaGuijun (baguijun@163.com)
         * @date 2024-04-22
         */
        virtual void keyReleaseEvent(QKeyEvent* event) override;
    };
}  // namespace GUI

#endif  // CUSTOMTABLEWIDGET_H
